package com.homegoods.discover.ui.activity;

import android.graphics.Color;
import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.homegoods.aroutercomment.ARouterPath;
import com.homegoods.discover.R;
import com.homegoods.discover.databinding.DiscoverActivityMessageBinding;
import com.homegoods.discover.presenter.MessagePresenter;
import com.kedll.library.base.KRefreshListActivity;

/**
 * @author QiQi
 * @description 消息
 */
@Route(path = ARouterPath.PATH_MESSAGE_LIST)
public class MessageActivity extends KRefreshListActivity<DiscoverActivityMessageBinding, MessagePresenter> {

    @Override
    public int getLayout() {
        return R.layout.discover_activity_message;
    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle("消息");
    }

    @Override
    protected MessagePresenter getPresenter() {
        return new MessagePresenter(this);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        list.setBackgroundColor(Color.WHITE);
    }

    @Override
    protected void initEvent() {
        super.initEvent();
        //交易物流
        onClicked(mBinding.llLogistics, o -> startActivity(LogisticsListActivity.class));
        //宅品活动
        onClicked(mBinding.llActivity, o -> startActivity(ActivityListActivity.class));
        //消息提示
        onClicked(mBinding.llMessage, o -> startActivity(MessageTipListActivity.class));
    }


}
